package com.qf.stat;

import com.qf.service.IOrderStatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * <p>title: com.qf.stat</p>
 * <p>Company: wendao</p>
 * author zhuximing
 * date 2021/9/24
 * description:
 */
//@Component
public class OrderJob {

    @Autowired
    private IOrderStatService orderStatService;


    //统计每天的订单数以及金额
//    @Scheduled(cron = "0 0 1 * * ?")

    @Scheduled(cron = "0 17 * * * ?")
    public void  statOrderPerDay(){
        orderStatService.statOrderPerDay();
    }

}